package app

import (
	"BlazeRider-backend/routes"
	"github.com/gin-gonic/gin"
)

func RegistRoute(engine *gin.Engine, registrars []routes.Registrar) {
	for _, r := range registrars {
		r.RegisterRoutes(engine)
	}

	// 特殊路由保持不变
	engine.GET("/image/:filename", func(c *gin.Context) { /* ... */ })
	engine.LoadHTMLGlob("templates/*.html")
}
